<?php
/* @var $this QuangcaoController */
/* @var $model quangcao */

$this->breadcrumbs=array(
	'Quảng cáo'=>array('index'),
	$model->Id,
);

$this->menu=array(
	array('label'=>'Danh Sách', 'url'=>array('index')),
	array('label'=>'Tạo Mới', 'url'=>array('create')),
	array('label'=>'Cập Nhật', 'url'=>array('update', 'id'=>$model->Id)),
	array('label'=>'Xóa', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->Id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Quản Lý', 'url'=>array('admin')),
);
?>

<h1>Thông tin quảng cáo:<?php echo $model->Id; ?></h1>

<table>
	<tr height="30">
    	<th style="width:120px; text-align:right; background: #cee1ea; border-bottom:1px solid #FFF;"><?php echo $model->getAttributeLabel('Id'); ?>:</th>
    	<td style="background: #f8f8f8; padding-left:10px; border-bottom:1px solid #FFF;"><?php echo $model->Id; ?></td>
  	</tr>
  	
  	<tr height="30">
    	<th style="width:120px; text-align:right; background: #cee1ea; border-bottom:1px solid #FFF;"><?php echo $model->getAttributeLabel('NoiDung'); ?>:</th>
    	<td style="background: #f8f8f8; padding-left:10px; border-bottom:1px solid #FFF;"><?php echo $model->NoiDung; ?></td>
  	</tr>
  	

  	
  	<tr height="30">
    	<th style="width:120px; text-align:right; background: #cee1ea; border-bottom:1px solid #FFF;"><?php echo $model->getAttributeLabel('Link'); ?>:</th>
    	<td style="background: #f8f8f8; padding-left:10px; border-bottom:1px solid #FFF;"><?php echo $model->Link; ?></td>
  	</tr>
  	<tr height="30">
    	<th style="width:120px; text-align:right; background: #cee1ea; border-bottom:1px solid #FFF;"><?php echo $model->getAttributeLabel('AnhDaiDien'); ?>:</th>
    	<td style="background: #f8f8f8; padding-left:10px; border-bottom:1px solid #FFF;">
    		<img src="<?php echo Yii::app()->request->baseUrl; ?>/<?php echo $model->AnhDaiDien;?>" style="width: 100px; height: auto;"/>
    	</td>
  	<tr height="30">
    	<th style="width:120px; text-align:right; background: #cee1ea; border-bottom:1px solid #FFF;"><?php echo $model->getAttributeLabel('TrangThai'); ?>:</th>
    	<td style="background: #f8f8f8; padding-left:10px; border-bottom:1px solid #FFF;">
    		<img src="<?php echo Yii::app()->request->baseUrl; ?>/css/icons/
			<?php 
				switch ($model->TrangThai){
					case 0:
						echo "not_active.png";
						break;
					case 1:
						echo "active.png";
						break;
				}
			?>	
			" style="width: 15px; height: 15px;"/>
    	</td>
  	</tr>
  	
  	<tr height="30">
    	<th style="width:120px; text-align:right; background: #cee1ea; border-bottom:1px solid #FFF;"><?php echo $model->getAttributeLabel('STT'); ?>:</th>
    	<td style="background: #f8f8f8; padding-left:10px; border-bottom:1px solid #FFF;"><?php echo $model->STT; ?></td>
  	</tr>
</table>
